﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SelectPart.ascx.cs"
    Inherits="Besture.UI.Admin.Control.SelectArticleClass" %>
<%--<script type="text/javascript" src="../PlugIn/lhgdialog/lhgcore.lhgdialog.min.js"></script>--%>
<img src='/Admin/Themes/Images/indispensable.gif' align='absMiddle' /><asp:TextBox runat="server"
    ID="txtParentName" class="input-text required common_Article_class_tree_parentname"
    Enabled="False"></asp:TextBox>
<asp:TextBox runat="server" ID="txtParentId" class="input-text common_Article_class_tree_parentid"
    Style="display: none"></asp:TextBox>
<% if (ShowSelectButton.Value)
   {
%>
<input id="menuBtn" type="button" class="button" onclick="ShowPartTree(); return false;"
    value="选择栏目" />
<%
   } %>
<input type="hidden" id="hidTypeID" value="<%=_TypeID %>" />
<script language="javascript">
    //显示新闻类选择树
    function ShowPartTree() {
        var selectClassID = $("#<%=txtParentId.ClientID %>").val();
        if (selectClassID == "") {
            selectClassID = "0";
        }


        var showCurrentPartParam = "&showCurrentPart=<%=ShowCurrentPart.Value %>&CurrentPartID=<%=CurrentPartID %>" ;

        var url = "/admin/Common/PartTree.aspx?selectClassID=" + selectClassID + "&needTopClass=" + <%= Convert.ToInt32(_NeedTopClass) %> + showCurrentPartParam;

        $.dialog({
            lock: true,
            content: 'url:' + url,
            title:'选择栏目',
            max: false,
            min: false,
            resize: true,
            width: '400px',
            height: '300px'
        });
    }
</script>
